<?php
/**
* @version		$Id: mod_seyretaio;
* @copyright	Copyright (C) 2010 Mustafa Dindar. All rights reserved.
* @license		GNU/GPL http://www.joomlaholic.com/gpl-2.0.txt
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

// Include the syndicate functions only once
require_once (dirname(__FILE__).DS.'helper.php');

$params->def('greeting', 1);



$videocount = $params->get("videocount", "6");
$columncount = $params->get("columncount", "6");

$arrangement = $params->get("arrangement", "vertical");
$videodetails = $params->get("videodetails", "bottom");
$showrating = $params->get("showrating", "1");
$showvideoowner = $params->get("showvideoowner", "1");
$showhit = $params->get("showhit", "1");
$showaddeddate = $params->get("showaddeddate", "1");
$displaytype = $params->get("displaytype", "thumbnail");
$columnwidth = $params->get("columnwidth", "145");
/*added by yli to set width and height of thumbnails*/
$thumbwidth = $params->get("thumbwidth", "120");
$thumbheight = $params->get("thumbheight", "90");
/*added by yli for css styles*/
$videotitlelenght = $params->get("videotitlelenght", "25");
$bordertype = $params->get("bordertype", "solid");
$borderwidth = $params->get("borderwidth", "1px");
$bordercolor = $params->get("bordercolor", "#666666");
$bgcol0 = $params->get("bgcol0", "transparent");
$bgcol1 = $params->get("bgcol1", "transparent");
$titlecolor = $params->get("titlecolor", "#ff0000");
$detailscolor = $params->get("detailscolor", "#333333");
/*end yli*/
$videos 	= modSeyretAIOHelper::getvideos($params,  $videocount);

$user =& JFactory::getUser();

require(JModuleHelper::getLayoutPath('mod_seyretaio'));